package com.example.model_service.service;

import com.example.model_service.domain.ObjInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.model_service.dto.QueryDTO;
import com.example.model_service.vo.Result;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import jakarta.servlet.http.HttpServletResponse;


/**
* @author 31586
* @description 针对表【model_obj】的数据库操作Service
* @createDate 2024-08-16 15:55:09
*/
public interface ObjInfoService extends IService<ObjInfo> {

    Result queryModels(QueryDTO queryDTO);

    Result uploadModel(MultipartFile file, Integer userId);

    ResponseEntity<byte[]> downloadModel(Integer id, HttpServletResponse response);

    Result removeModel(Integer id);

    Result queryAllModels(Integer userId);
}
